﻿using ChuanYe.WorkLogManagement.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ChuanYe.WorkLogManagement.Api.Models
{
    public class RegisterRequest : DelUserRequest
    {
        /// <summary>
        /// 账号名
        /// </summary>
        public string AccountName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string MobilePhone { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int? DepartmentID { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        public int? PositionID { get; set; }

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public bool? IsManager { get; set; }
    }



    public class DelUserRequest {
        /// <summary>
        ///  主键 增加时忽略
        /// </summary>
        public int UserID { get; set; }
    }


    public class ChangePasswordRequest {
        public int UserID { get; set; }

        public string OldPassword { get; set; }

        public string NewPassword { get; set; }
    }



    public class UserRequest : RequstPageBase
    {
        /// <summary>
        /// 当前用户ID
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int? DepartmentID { get; set;}

        /// <summary>
        /// 职位ID
        /// </summary>
        public int? PositionID { get; set; }

        public bool? IsChilder { get; set; }
    }


    public class DepartmentRequest : DelDepartmentRequest
    {
         /// <summary>
         /// 部门名称
         /// </summary>
         public string DelDepartmentName { get; set; }
    }

    public class DelDepartmentRequest {
        /// <summary>
        /// 主键 增加时忽略
        /// </summary>
        public int DelDepartmentId { get; set; }
    }

    public class WorkSearchRequest
    {
        /// <summary>
        /// 谁看
        /// </summary>
        public int FromUserID { get; set; }

        /// <summary>
        /// 看谁
        /// </summary>
        public int ToUserID { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
    }

    public class WorkGroupUserRequest
    {
        /// <summary>
        /// 谁看
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 用户名或者登录名 搜索
        /// </summary>
        public string Keyword{ get; set; }
        

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
    }



}
